<template>
  <div class="no-data">
    <slot v-if="slot.default"></slot>
    <span v-else>暂无数据</span>
  </div>
</template>

<script lang="ts" setup>
import {useSlots} from "vue";

const slot = useSlots();

</script>

<style scoped lang="scss">
.no-data {
  width: 100%;
  height: 600rpx;
  font-size: 24rpx;
  color: #24FAF6;
  text-align: center;
  line-height: 600rpx;
}
</style>
